Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODStorageSystem


CreateTypeList

The CreateTypeList method creates or copies a type list.

ODTypeList CreateTypeList (in ODTypeList typeList);
typeList
A reference to the type list to be duplicated, or kODNULL to create an empty type list.
return value
A reference to the newly created type list.
DISCUSSION
You can call this method if your part needs a list of types, for example, a list of part kinds it supports.

If the typeList parameter is a reference to an existing type list, the new type list is initialized to contain a copy of each element in the existing type list. The elements in the new list are in the same order as the elements of the existing type list. Because each element of the existing list is a pointer to an ISO string, the pointers themselves are not added to the new type list; instead, each string is copied and a pointer to the new copy is added to the type list.

SEE ALSO
The ODType type (page 876).
The ODTypeList class (page 797).
Table 11-1 on page 466 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help